package com.chat.api.web.po;

import com.chat.api.web.vo.BaseIDWorkEntity;
import lombok.Data;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Proxy(lazy = false)
@Data
@Table(name = "message")
public class ChatBean extends BaseIDWorkEntity<ChatBean> {

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "message")
    private String message;

    @Column(name = "is_read")
    private Integer isRead;

    @Column(name = "receiver")
    private Long receiver;


}
